@tool
class_name Cost_Single
extends Cost

@export var cost_type:String:
	set(value):
		if cost_type != value:
			cost_type = value
			changed.emit()
@export var cost_value:CompositeProperty:
	set(value):
		if cost_value != value:
			cost_value = value
			changed.emit()

func check_cost(entity:Entity) -> bool:
	return CostUtil.check_cost(entity,self)
func do_cost(entity:Entity,args:Dictionary = {}) -> bool:
	return CostUtil.do_cost(entity,self,args)
